package lyj.springcloud.feign;

import com.lyj.springcloud.entities.CommonResult;
import com.lyj.springcloud.entities.Payment;
import lyj.springcloud.feign.impl.FeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "nacos-payment-provider",fallback = FeignServiceImpl.class)
public interface FeignService {

    @GetMapping(value = "/paymentSQL/{id}")
    public CommonResult<Payment> paymentSQL(@PathVariable("id") String id);
}
